package com.douwong.student.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

import com.douwong.student.base.BaseFragment;

import java.util.List;

/**
 * @autor yichao
 * @time 2017/5/118:54
 * @des ${TODO}
 */

public class TestRecordPageAdapter extends FragmentStatePagerAdapter {
    private List<BaseFragment> mBaseFragmentList;

    public TestRecordPageAdapter(FragmentManager fm, List<BaseFragment> baseFragmentList) {
        super(fm);
        mBaseFragmentList = baseFragmentList;
    }

    @Override
    public Fragment getItem(int position) {


        return  mBaseFragmentList.get(position);
    }

    @Override
    public int getCount() {
        return mBaseFragmentList.size();
    }
}
